<nz-layout>
    <nz-header><label style="color:white;">新建通知</label></nz-header>
    <nz-content style="padding-left:5%;margin-top:10px;">
      <div>
        <label >&nbsp;&nbsp;通知所属类型：
          <nz-select  style="width: 200px;" nzAllowClear [nzPlaceHolder]="'Select a person'"  [(ngModel)]="notifyTypeId" nzShowSearch>
            <nz-option *ngFor="let option of notifyTypeOptions"  [nzLabel]="option.columnName" [nzValue]="option.id" [nzDisabled]="option.disabled"> </nz-option>
          </nz-select>
        </label>
      </div>
      <div>
        <div style=" float:left;"><label>&nbsp;&nbsp;接收人:&nbsp;&nbsp;</label></div>
        <div style=" display:inline;"><ul id="ztree" class="ztree" style="margin-top: 0; width: 110px;"></ul></div>
      </div>
      <div>
        <label>&nbsp;&nbsp;通知标题:&nbsp;&nbsp;<input [(ngModel)]="notifyTitle" ></label>
      </div>
      <div>
        <label>&nbsp;&nbsp;通知内容
          <div style="padding-left:1%;">
            <p-editor [(ngModel)]="notifyInfo" [style]="{'height':'320px'}"></p-editor>
            <button pButton type="button" (click)="addNotify()" label="发布"></button>
            <button pButton type="button" (click)="cancelClick()" label="取消"></button>
          </div>
        </label>
      </div>
    </nz-content>
</nz-layout>


<!-- 提示框，隐藏IP地址 -->
<p-dialog header="提示" [(visible)]="display" modal="modal" width="400" [responsive]="true">
  <p style="text-align:center">
      {{messages}}
  </p>
  <p-footer>
      <button type="button" pButton icon="fa-check" (click)="display=false" label="确定"></button>
      <button id="btnErrorDataShow" type="button" pButton icon="fa-check" style="display:none;" (click)="lookErrorData()" label="失败数据"></button>
  </p-footer>
</p-dialog>

<!-- 确认框 -->
<p-confirmDialog header="提示" icon="fa fa-question-circle" width="425"></p-confirmDialog>
